<template>
	<view>
		<web-view src="https://static-8f5207a8-54ef-44ec-b8bb-6f7f019dec6f.bspapp.com/#/"></web-view>
		<!-- <web-view src="https://vue-vite-block-demo.vercel.app"></web-view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {
			const that = this
			const pages = getCurrentPages(); //getCurrentPages() 函数用于获取当前页面栈的实例
			const page = pages[pages.length - 1];
			const currentWebview = page.$getAppWebview(); //$getAppWebview() 可以得到当前webview的对象实例，从而实现对 webview 更强大的控制。
			if (uni.getSystemInfoSync().platform === 'ios') {
				setTimeout(function() {
					const wv = currentWebview.children()[0];
					wv.setStyle({
						contentAdjust: false,
						top: -1,
						bottom: -1,
						width: '100vw',
						height: '100vh'
					});
				}, 100);
			}
		},
		methods: {

		}
	}
</script>

<style>

</style>
